﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Manager_ViewSignTable : System.Web.UI.PageEx
{
    private DataSet ds = null;
    public static string strId = "0";
    private string strPageCode = "B0011";
    private string strLoginResult = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!DalEx.DbManagerEx.CheckLoginRight(UserType, UserId, strPageCode, ref strLoginResult))
        {
            FineUI.Alert.Show(strLoginResult, FineUI.MessageBoxIcon.Warning);
            Response.Redirect("Login.aspx");
        }
        if (!Page.IsPostBack)
        {
            DataBinds();
        }
    }
    private void DataBinds()
    {
        if (!string.IsNullOrEmpty(Request.QueryString["Id"]))
        {
            strId = Request.QueryString["Id"].ToString();
        }
        int iUserId = 0;
        int.TryParse(strId, out iUserId);

        Model.BaoMing2 M_BaoMing = Dal.BaoMing2Dal.Select(iUserId);
        if (M_BaoMing != null)
        {
            lblBabyName.Text = M_BaoMing.BabyName;
            lblParentName.Text = M_BaoMing.ParentName;
            lblParentEducation.Text = M_BaoMing.ParentEducation;
            lblMobile.Text = M_BaoMing.Mobile;
            lblWorkUnit.Text = M_BaoMing.WorkUnit;
            lblParentSkill.Text = M_BaoMing.ParentSkill;
            lblResources.Text = M_BaoMing.Resources;
        }

    }
}
